
package cn.nubia.admin.application.bean;

import cn.nubia.admin.common.utils.DateUtil;

import java.io.Serializable;

/**
 * Created by justin on 15/6/29.
 * CREATE TABLE `nb_soft_recommend` (
 `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '关联id',
 `rec_type` smallint(6) DEFAULT NULL COMMENT '推荐类型（此前目前只有三个，需要>动态添加，要用枚举来维护  1.精品推荐 2.应用 3.游戏 ）',
 `sort_index` int(11) DEFAULT NULL COMMENT '排序号',
 `create_time` int(11) DEFAULT NULL COMMENT '创建时间',
 `expired_time` int(11) DEFAULT NULL COMMENT '过期时间',
 `start_time` int(11) DEFAULT NULL COMMENT '开始时间',
 `terminal_id` int(11) DEFAULT NULL COMMENT '展示端id',
 `soft_id` int(11) DEFAULT NULL COMMENT '软件id',
 `recommend_reasion` varchar(200) DEFAULT NULL COMMENT '推荐理由',
 `create_admin_id` int(11) DEFAULT NULL COMMENT '创建人的管理员id',
 `create_admin_name` varchar(20) DEFAULT NULL COMMENT '创建人的管理员名称',
 `modify_admin_id` int(11) DEFAULT NULL COMMENT '修改人的管理员id',
 `modify_admin_name` varchar(20) DEFAULT NULL COMMENT '修改人的管理员名称',
 PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='软件精品推荐';
 */
public class SoftRecommendVo implements Serializable {

    private static final long serialVersionUID = -8244661101951482489L;

    private Integer id;
    //推荐类型（此前目前只有三个，需要>动态添加，要用枚举来维护  1.精品推荐 2.应用 3.游戏 ）
    private Integer recType;

    //推荐类型.
    private String recName;
    //排序号
    private Integer sortIndex;
    //创建时间
    private Integer createTime;
    private String createTimeShow;
    //过期时间
    private Integer expiredTime;
    private String expiredTimeShow;
    //开始时间
    private Integer startTime;
    private String startTimeShow;
    //展示端id
    private Integer terminalId;
    //软件id
    private Integer softId;
    //推荐理由
    private String recommendReason;
    //创建人的管理员id
    private Integer createAdminId;
    //创建人的管理员名称
    private String createAdminName;
    //修改人的管理员id
    private Integer modifyAdminId;
    //修改人的管理员名称
    private String modifyAdminName;

    //软件名称
    private String softName;

    public String getRecName() {
        return recName;
    }

    public void setRecName(String recName) {
        this.recName = recName;
    }

    public String getSoftName() {
        return softName;
    }

    public void setSoftName(String softName) {
        this.softName = softName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRecType() {
        return recType;
    }

    public void setRecType(Integer recType) {
        this.recType = recType;
    }

    public Integer getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
        if(createTime>0){
            createTimeShow = DateUtil.getFormatDate(createTime);
        }
    }

    public Integer getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Integer expiredTime) {
        this.expiredTime = expiredTime;
        if(expiredTime>0){
            expiredTimeShow = DateUtil.getFormatDate(expiredTime);
        }
    }

    public Integer getStartTime() {
        return startTime;
    }

    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
        if(startTime>0){
            startTimeShow = DateUtil.getFormatDate(startTime);
        }
    }

    public Integer getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(Integer terminalId) {
        this.terminalId = terminalId;
    }

    public Integer getSoftId() {
        return softId;
    }

    public void setSoftId(Integer softId) {
        this.softId = softId;
    }

    public String getRecommendReason() {
        return recommendReason;
    }

    public void setRecommendReason(String recommendReason) {
        this.recommendReason = recommendReason;
    }

    public Integer getCreateAdminId() {
        return createAdminId;
    }

    public void setCreateAdminId(Integer createAdminId) {
        this.createAdminId = createAdminId;
    }

    public String getCreateAdminName() {
        return createAdminName;
    }

    public void setCreateAdminName(String createAdminName) {
        this.createAdminName = createAdminName;
    }

    public Integer getModifyAdminId() {
        return modifyAdminId;
    }

    public void setModifyAdminId(Integer modifyAdminId) {
        this.modifyAdminId = modifyAdminId;
    }

    public String getModifyAdminName() {
        return modifyAdminName;
    }

    public void setModifyAdminName(String modifyAdminName) {
        this.modifyAdminName = modifyAdminName;
    }
}
